# coding:utf8
from django.contrib import admin
from .models import BookInfo, HeroInfo

"""
django中的后台admin站点使用方法：
1.admin.register()
2.使用模型类
"""


# admin.site.register(BookInfo)
# admin.site.register(HeroInfo)

@admin.register(BookInfo)
class BooInfoAdmin(admin.ModelAdmin):
    class Meta:
        model = BookInfo
        fields = ('btitle', 'bpub_date')


class AreaAdmin(admin.ModelAdmin):
    list_per_page = 10
